package com.groupe_A.metier;

import java.util.List;


/**
 * @author mohssine
 * @version 1.0
 * @created 30-avr.-2013 14:44:56
 */
public class Etudiant extends Utilisateur {

	private String adresse;
	private String cin;
	private Long cne;
	private int numInscription;

	public List<Absence> absences;
	public List<DemandeAttestation> demandeAttestations;
	

	public Etudiant(){
	}
	
	public Etudiant(String adresse, String cin, Long cne, int numInscription) {
		this.adresse = adresse;
		this.cin = cin;
		this.cne = cne;
		this.numInscription = numInscription;
	}

	public void addAbsence(Absence absence){
		absences.add(absence);
	}
	public void removeAbsence(Absence absence){
		absences.remove(absence);
	}
	
	public void addDemandeAttestation(DemandeAttestation demandeAttestation){
		demandeAttestations.add(demandeAttestation);
	}
	public void removeDemandeAttestation(DemandeAttestation demandeAttestation){
		demandeAttestations.remove(demandeAttestation);
	}
	public String getAdresse() {
		return adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public String getCin() {
		return cin;
	}

	public void setCin(String cin) {
		this.cin = cin;
	}

	public Long getCne() {
		return cne;
	}

	public void setCne(Long cne) {
		this.cne = cne;
	}

	public int getNumInscription() {
		return numInscription;
	}

	public void setNumInscription(int numInscription) {
		this.numInscription = numInscription;
	}

	public List<Absence> getAbsences() {
		return absences;
	}

	public void setAbsences(List<Absence> absences) {
		this.absences = absences;
	}

	public List<DemandeAttestation> getDemandeAttestations() {
		return demandeAttestations;
	}

	public void setDemandeAttestations(List<DemandeAttestation> demandeAttestations) {
		this.demandeAttestations = demandeAttestations;
	}

}